var commodity={
    "all": [{
        "goodId": 33,
        "marker": {
            "addr_name": "泓理楼",
            "address": "陕西省西安市长安区学苑北路",
            "longitude": "108.65382681288371",
            "latitude": "34.257892349766706"
        },
        "name": "中兴手机",
        "price": "1000",
        "url": "../../static/images/commodity/digital/digital7.jpg"
    }, {
        "goodId": 32,
        "marker": {
            "addr_name": "泓生楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65954463701702",
            "latitude": "34.25866967171034"
        },
        "name": "人工智能实战",
        "price": "20",
        "url": "../../static/images/commodity/books/book1.jpg"
    },{
        "goodId": 31,
        "marker": {
            "addr_name": "泓德楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65859337368362",
            "latitude": "34.25939267282698"
        },
        "name": "九阳豆浆机黑色",
        "price": "130",
        "url": "../../static/images/commodity/applications/applications1.jpg"
    }, {
        "goodId": 30,
        "marker": {
            "addr_name": "泓仁楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65940226001177",
            "latitude": "34.260012574674946"
        },
        "name": "男士上衣",
        "price": "60",
        "url": "../../static/images/commodity/clothes/clothes1.jpg"
    },{
        "goodId": 29,
        "marker": {
            "addr_name": "朗清苑",
            "address": "陕西省西安市长安区文治东路",
            "longitude": "108.65588159739058",
            "latitude": "34.258461090168375"
        },
        "name": "运动裤",
        "price": "60",
        "url": "../../static/images/commodity/sports/sports1.jpg"
    },{
        "goodId": 28,
        "marker": {
            "addr_name": "泓润楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.66017394062612",
            "latitude": "34.259169575172535"
        },
        "name": "加湿器",
        "price": "39",
        "url": "../../static/images/commodity/lifegoods/lifegoods7.jpg"
    },{
        "goodId": 27,
        "marker": {
            "addr_name": "兴华购物广场",
            "address": "陕西省西安市长安区樱花西路",
            "longitude": "108.65420105187906",
            "latitude": "34.255402304704496"
        },
        "name": "置物架",
        "price": "10",
        "url": "../../static/images/commodity/artifact/artifact1.jpg"
    },],
    "digital": [{
        "goodId": 26,
        "marker": {
            "addr_name": "泓理楼",
            "address": "陕西省西安市长安区学苑北路",
            "longitude": "108.65382681288371",
            "latitude": "34.257892349766706"
        },
        "name": "中兴手机",
        "price": "1000",
        "url": "../../static/images/commodity/digital/digital7.jpg"
    }, {
        "goodId": 25,
        "marker": {
            "addr_name": "朗清苑",
            "address": "陕西省西安市长安区文治东路",
            "longitude": "108.65588159739058",
            "latitude": "34.258461090168375"
        },
        "name": "光影精灵6",
        "price": "2400",
        "url": "../../static/images/commodity/digital/digital8.jpg"
    }, {
        "goodId": 24,
        "marker": {
            "addr_name": "泓德楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65859337368362",
            "latitude": "34.25939267282698"
        },
        "name": "华为荣耀",
        "price": "1300",
        "url": "../../static/images/commodity/digital/digital11.jpg"
    }, {
        "goodId": 23,
        "marker": {
            "addr_name": "兴华购物广场",
            "address": "陕西省西安市长安区樱花西路",
            "longitude": "108.65420105187906",
            "latitude": "34.255402304704496"
        },
        "name": "戴尔笔记本",
        "price": "2200",
        "url": "../../static/images/commodity/digital/digital22.jpg"
    }, {
        "goodId": 22,
        "marker": {
            "addr_name": "泓仁楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65940226001177",
            "latitude": "34.260012574674946"
        },
        "name": "iphone12pro max",
        "price": "6600",
        "url": "../../static/images/commodity/digital/digital23.jpg"
    }],
    "oldbook": [{
        "goodId": 1,
        "marker": {
            "addr_name": "泓生楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65954463701702",
            "latitude": "34.25866967171034"
        },
        "name": "人工智能实战",
        "price": "20",
        "url": "../../static/images/commodity/books/book1.jpg"
    }, {
        "goodId": 21,
        "marker": {
            "addr_name": "泓润楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.66017394062612",
            "latitude": "34.259169575172535"
        },
        "name": "自己动手写神经网络",
        "price": "35",
        "url": "../../static/images/commodity/books/book2.jpg"
    }, {
        "goodId": 20,
        "marker": {
            "addr_name": "道科广场",
            "address": "西安市长安区通勤路(中国西部科技创新港东北侧约50米)",
            "longitude": "108.66288759059161",
            "latitude": "34.259431721875934"
        },
        "name": "Tensorflow 深度学习",
        "price": "49",
        "url": "../../static/images/commodity/books/book3.jpg"
    }, {
        "goodId": 19,
        "marker": {
            "addr_name": "泓理楼",
            "address": "陕西省西安市长安区学苑北路",
            "longitude": "108.65382681288371",
            "latitude": "34.257892349766706"
        },
        "name": "OpenCV深度学习应用",
        "price": "10",
        "url": "../../static/images/commodity/books/book4.jpg"
    }, {
        "goodId": 18,
        "marker": {
            "addr_name": "朗清苑",
            "address": "陕西省西安市长安区文治东路",
            "longitude": "108.65588159739058",
            "latitude": "34.258461090168375"
        },
        "name": "神经网络与深度学习",
        "price": "22",
        "url": "../../static/images/commodity/books/book5.jpg"
    }],
    "appliances": [{
        "goodId": 17,
        "marker": {
            "addr_name": "泓德楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65859337368362",
            "latitude": "34.25939267282698"
        },
        "name": "九阳豆浆机黑色",
        "price": "130",
        "url": "../../static/images/commodity/applications/applications1.jpg"
    }, {
        "goodId": 16,
        "marker": {
            "addr_name": "兴华购物广场",
            "address": "陕西省西安市长安区樱花西路",
            "longitude": "108.65420105187906",
            "latitude": "34.255402304704496"
        },
        "name": "九阳豆浆机白色",
        "price": "110",
        "url": "../../static/images/commodity/applications/applications3.jpg"
    }],
    "clothes": [{
        "goodId": 15,
        "marker": {
            "addr_name": "泓仁楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65940226001177",
            "latitude": "34.260012574674946"
        },
        "name": "男士上衣",
        "price": "60",
        "url": "../../static/images/commodity/clothes/clothes1.jpg"
    }, {
        "goodId": 14,
        "marker": {
            "addr_name": "泓生楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65954463701702",
            "latitude": "34.25866967171034"
        },
        "name": "运动鞋",
        "price": "99",
        "url": "../../static/images/commodity/clothes/clothes2.jpg"
    }, {
        "goodId": 13,
        "marker": {
            "addr_name": "泓润楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.66017394062612",
            "latitude": "34.259169575172535"
        },
        "name": "黑色衬衫",
        "price": "49",
        "url": "../../static/images/commodity/clothes/clothes3.jpg"
    }, {
        "goodId": 12,
        "marker": {
            "addr_name": "道科广场",
            "address": "西安市长安区通勤路(中国西部科技创新港东北侧约50米)",
            "longitude": "108.66288759059161",
            "latitude": "34.259431721875934"
        },
        "name": "潮牌运动鞋",
        "price": "80",
        "url": "../../static/images/commodity/clothes/clothes5.jpg"
    }, {
        "goodId": 11,
        "marker": {
            "addr_name": "泓理楼",
            "address": "陕西省西安市长安区学苑北路",
            "longitude": "108.65382681288371",
            "latitude": "34.257892349766706"
        },
        "name": "女士套装",
        "price": "88",
        "url": "../../static/images/commodity/clothes/clothes7.jpg"
    }],
    "sports": [{
        "goodId": 10,
        "marker": {
            "addr_name": "朗清苑",
            "address": "陕西省西安市长安区文治东路",
            "longitude": "108.65588159739058",
            "latitude": "34.258461090168375"
        },
        "name": "运动裤",
        "price": "60",
        "url": "../../static/images/commodity/sports/sports1.jpg"
    }, {
        "goodId": 34,
        "marker": {
            "addr_name": "泓德楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65859337368362",
            "latitude": "34.25939267282698"
        },
        "name": "黑色运动裤",
        "price": "99",
        "url": "../../static/images/commodity/sports/sports2.jpg"
    }, {
        "goodId": 35,
        "marker": {
            "addr_name": "兴华购物广场",
            "address": "陕西省西安市长安区樱花西路",
            "longitude": "108.65420105187906",
            "latitude": "34.255402304704496"
        },
        "name": "运动器材",
        "price": "79",
        "url": "../../static/images/commodity/sports/sports3.jpg"
    }, {
        "goodId": 36,
        "marker": {
            "addr_name": "泓仁楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65940226001177",
            "latitude": "34.260012574674946"
        },
        "name": "运动上衣", 
        "price": "60",
        "url": "../../static/images/commodity/sports/sports8.jpg"
    }, {
        "goodId": 37,
        "marker": {
            "addr_name": "泓生楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65954463701702",
            "latitude": "34.25866967171034"
        },
        "name": "李宁拖鞋",
        "price": "79",
        "url": "../../static/images/commodity/sports/sports13.jpg"
    }],
    "lifegoods": [{
        "goodId": 38,
        "marker": {
            "addr_name": "泓润楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.66017394062612",
            "latitude": "34.259169575172535"
        },
        "name": "加湿器",
        "price": "39",
        "url": "../../static/images/commodity/lifegoods/lifegoods7.jpg"
    }, {
        "goodId": 39,
        "marker": {
            "addr_name": "道科广场",
            "address": "西安市长安区通勤路(中国西部科技创新港东北侧约50米)",
            "longitude": "108.66288759059161",
            "latitude": "34.259431721875934"
        },
        "name": "盆",
        "price": "49",
        "url": "../../static/images/commodity/lifegoods/lifegoods13.jpg"
    }, {
        "goodId": 40,
        "marker": {
            "addr_name": "泓理楼",
            "address": "陕西省西安市长安区学苑北路",
            "longitude": "108.65382681288371",
            "latitude": "34.257892349766706"
        },
        "name": "台灯",
        "price": "80",
        "url": "../../static/images/commodity/lifegoods/lifegoods16.jpg"
    }, {
        "goodId": 41,
        "marker": {
            "addr_name": "朗清苑",
            "address": "陕西省西安市长安区文治东路",
            "longitude": "108.65588159739058",
            "latitude": "34.258461090168375"
        },
        "name": "衣架",
        "price": "88",
        "url": "../../static/images/commodity/lifegoods/lifegoods17.jpg"
    }, {
        "goodId": 42,
        "marker": {
            "addr_name": "泓德楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65859337368362",
            "latitude": "34.25939267282698"
        },
        "name": "地毯",
        "price": "88",
        "url": "../../static/images/commodity/lifegoods/lifegoods18.jpg"
    }],
    "artifact": [{
        "goodId": 43,
        "marker": {
            "addr_name": "兴华购物广场",
            "address": "陕西省西安市长安区樱花西路",
            "longitude": "108.65420105187906",
            "latitude": "34.255402304704496"
        },
        "name": "置物架",
        "price": "10",
        "url": "../../static/images/commodity/artifact/artifact1.jpg"
    }, {
        "goodId": 44,
        "marker": {
            "addr_name": "泓仁楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65940226001177",
            "latitude": "34.260012574674946"
        },
        "name": "加湿器",
        "price": "39",
        "url": "../../static/images/commodity/artifact/artifact2.jpg"
    }, {
        "goodId": 45,
        "marker": {
            "addr_name": "泓生楼",
            "address": "陕西省西安市长安区学森一路",
            "longitude": "108.65954463701702",
            "latitude": "34.25866967171034"
        },
        "name": "盆",
        "price": "49",
        "url": "../../static/images/commodity/artifact/artifact3.jpg"
    }]
}


var host="http://192.168.31.34:8080"
var urls={
    // 首页用到的接口
    "getgoods":host+"/goods/getallgoods",
    "search":host+"/goods/search",
    // detail界面用到的函数
    "getgoodbyid":host+"/goods/getgoodbygoodid",
    "buygood":host+"/goods/buygood",
    "stargood":host+"/stargood",
    // 发布商品界面
    "addgood":host+"/goods/addgood",
    "upload":host+"/upload",
    // 我的收藏界面
    "getstars":host+"/getstarts",
    "removestar":host+"removestar",
    // 我的发布界面
    "getmypublished":host+"/goods/getmypublished",
    "comfirmdeal":host+"/goods/comfirmdeal",
    // 我要发帖界面
    "publishforum":host+"/publishforum",
    // 论坛界面
    "getallforum":host+"/getallforum",
    // 登录界面
    "login":host+"/user/login",
    // 注册界面
    "adduser":host+"/user/adduser",
    "sendcode":host+"/user/sendcode",
    // 我的购买界面
    "cancledeal":host+"/goods/cancledeal",
    "getmybuy":host+"/goods/getmybuy"
}
module.exports.commodity = commodity;
module.exports.host=host;
module.exports.urls =urls;